package pe.com.bn.sach.domain;

/**
 * Bnchf68UsrChAdmAgencId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf68UsrChAdmAgencId implements java.io.Serializable {

	// Fields

	private Long f68IdHipotecario;
	private String f68IdAgencia;
	private Long f68IdRol;
	private Long f68IdUsua;

	// Constructors

	/** default constructor */
	public Bnchf68UsrChAdmAgencId() {
	}

	/** full constructor */
	public Bnchf68UsrChAdmAgencId(Long f68IdHipotecario, String f68IdAgencia,
			Long f68IdRol, Long f68IdUsua) {
		this.f68IdHipotecario = f68IdHipotecario;
		this.f68IdAgencia = f68IdAgencia;
		this.f68IdRol = f68IdRol;
		this.f68IdUsua = f68IdUsua;
	}

	// Property accessors

	public Long getF68IdHipotecario() {
		return this.f68IdHipotecario;
	}

	public void setF68IdHipotecario(Long f68IdHipotecario) {
		this.f68IdHipotecario = f68IdHipotecario;
	}

	public String getF68IdAgencia() {
		return this.f68IdAgencia;
	}

	public void setF68IdAgencia(String f68IdAgencia) {
		this.f68IdAgencia = f68IdAgencia;
	}

	public Long getF68IdRol() {
		return this.f68IdRol;
	}

	public void setF68IdRol(Long f68IdRol) {
		this.f68IdRol = f68IdRol;
	}

	public Long getF68IdUsua() {
		return this.f68IdUsua;
	}

	public void setF68IdUsua(Long f68IdUsua) {
		this.f68IdUsua = f68IdUsua;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf68UsrChAdmAgencId))
			return false;
		Bnchf68UsrChAdmAgencId castOther = (Bnchf68UsrChAdmAgencId) other;

		return ((this.getF68IdHipotecario() == castOther.getF68IdHipotecario()) || (this
				.getF68IdHipotecario() != null
				&& castOther.getF68IdHipotecario() != null && this
				.getF68IdHipotecario().equals(castOther.getF68IdHipotecario())))
				&& ((this.getF68IdAgencia() == castOther.getF68IdAgencia()) || (this
						.getF68IdAgencia() != null
						&& castOther.getF68IdAgencia() != null && this
						.getF68IdAgencia().equals(castOther.getF68IdAgencia())))
				&& ((this.getF68IdRol() == castOther.getF68IdRol()) || (this
						.getF68IdRol() != null
						&& castOther.getF68IdRol() != null && this
						.getF68IdRol().equals(castOther.getF68IdRol())))
				&& ((this.getF68IdUsua() == castOther.getF68IdUsua()) || (this
						.getF68IdUsua() != null
						&& castOther.getF68IdUsua() != null && this
						.getF68IdUsua().equals(castOther.getF68IdUsua())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getF68IdHipotecario() == null ? 0 : this
						.getF68IdHipotecario().hashCode());
		result = 37
				* result
				+ (getF68IdAgencia() == null ? 0 : this.getF68IdAgencia()
						.hashCode());
		result = 37 * result
				+ (getF68IdRol() == null ? 0 : this.getF68IdRol().hashCode());
		result = 37 * result
				+ (getF68IdUsua() == null ? 0 : this.getF68IdUsua().hashCode());
		return result;
	}

}